# !/usr/bin/env python
# encoding: utf-8


"""
  @author: gaogao
  @file: var_manager.py
  @time: 2022/5/27 10:32
  @desc:
"""
from utils.singleton_util import singleton


# def singleton(cls, *args, **kwargs):
#     instances = {}
#
#     def _singleton():
#         if cls not in instances:
#             instances[cls] = cls(*args, **kwargs)
#         return instances[cls]
#
#     return _singleton


@singleton
class VarManager:
    def __init__(self):
        self.diex = 1
        self.diey = 1
        self.wafer_name = "12345"
        self.subdie_number = 0
        self.shot_number = 0
        self.subdie_name = "demo"
        self.save_folder = r"C:\Users\Jingw\Desktop\test"
        self.temperature = "25"
        self.humidity = "60"
        self.polarization_type = "TE"
        
